﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<?php 
	$userID = $_POST["users_idNum"];
	$userID = intval($userID);
	$complaint = $_POST["complaints_complaint"];
	$ses_id = session_id();
	include("../../database/connect.php");
	
	$backgroundInfo = mysql_query("SELECT * FROM background WHERE idNum='$userID'");
	$row = mysql_fetch_array($backgroundInfo);
	if (!$row['diseased'])
	{
		$condition = 'ברקע אין מחלות';
	}
	else
	{
		$condition = $row['diseases']; //. " מזה " . $row['timeill'] . " " . ($row['timeUnits'] == "years" ? "שנים." : "חודשים.") . ($row['treated'] ? " מטופל/ת." : " לא מטופל/ת.");
	}
	
	$operated = $row['operated'] ? 'נותח/ה בעבר' : "";

?>

<body>

	<p>
    	<a class="entry"> <?php echo $condition?></a>
    <p>
    	<p>
    	<a class="entry"> <?php echo $operated?></a>
    <p>

</body>
</html>